package com.activemqwrap.tools.tcpforward;

import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.util.Date;

public class SocketExt {
    public String socketName;
    public Socket socket;
    InputStream inputStream;
    OutputStream outputStream;
    public Date lastCommTime;

    public SocketExt(Socket socketNew,
                     InputStream inputStreamNew,
                     OutputStream outputStreamNew) {
        socketName = socketNew.getLocalSocketAddress().toString();
        socket = socketNew;
        inputStream = inputStreamNew;
        outputStream = outputStreamNew;
        refreshLastCommTime();
    }

    public void refreshLastCommTime() {
        lastCommTime = new Date();
    }

}
